﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AdvertisingRight.ascx.cs" Inherits="AdvertisingRight" %>
<%@ Import Namespace="DTO" %>
<asp:DataList ID="dlstPartner" EnableTheming="False" runat="server" CellPadding="0" CellSpacing="0" 
      DataSourceID="objPartner" DataKeyField="ID" Width="100%" >
      <ItemTemplate>        		
        <asp:HyperLink runat="server" ID="hplLogo" Target="_blank" Width="194px" NavigateUrl='<% #Eval("Website") %>' Visible='<%# Eval("Option").ToString() == "0" %>' >
            <asp:Image runat="server" ID="imglogo" ImageUrl='<% #Eval("Logo") %>' Width="194px" />
        </asp:HyperLink>
         <asp:HyperLink runat="server" ID="hplFlash" Target="_blank" Width="194px" NavigateUrl='<% #Eval("Website") %>' Visible='<%# Eval("Option").ToString() == "1" %>'>
            <object>
            <embed src='<%#Eval("Logo") %>' width="194px" height="220px" quality="high" 
                pluginspage="http://www.macromedia.com/go/getflashplayer" 
                type="application/x-shockwave-flash" menu="false" 
                wmode="transparent">
            </embed>
            </object>
            </asp:HyperLink>
      </ItemTemplate>
</asp:DataList>
<asp:ObjectDataSource ID="objPartner" runat="server" SelectMethod="GetPartnerByPartnerCatID"
    TypeName="BLL.Pages.Partners" >
    <SelectParameters>
        <asp:Parameter DefaultValue="2" Name="partnerCatID" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>